    ;^Z80^
    TITLE FILE: OCB:TOS            HEWLETT-PACKARD: OCB  (c) Coleco 1982 Confidential
    ;NAME ^Rev 0 - DTT^

    DESCR_OCB        MACRO
                           .GOTO ENDESCR_OCB

     Author:       DTT
     Project:      WAFER, A132
     Starting date:25mar83

     ******************************
     *  OCB                 DTT   *
     ******************************

           Rev.  Date         Name       Change
            1
            2    25mar83   DTT        Initial Pseudo code

     NAME: OCB   (OVERLAY CONTROL BLOCK TABLE)
           THE OCB DESCRIBED BELOW IS AN EXAMPLE ONLY AND DOES NOT DESCRIBE
           ANY GAME.  I AM SHOWING A MAIN PROGRAM STARTING AT 8000H.
           THE BACKUP COPY OF THE COLD START LOADER ALSO GETS LOADED AT 8000H.
           THERE ARE 10 OVERLAYS DESCRIBED IN THIS OCT. THE LAST TWO ARE
           SPARE. TWO DESCRIBE VANITY SCREEN AND DATA

    ENDESCR_OCB:
           MEND

    ;EXTERNAL DATA AREAS USED:
    ;      EXT

    ;GLOBAL DATA AREAS USED:
           GLOBAL  OCB
           EXT     OCB_PTR

    ;LOCAL EQUATES

    ;GLOBAL EQUATES

    ;-----------------------------------------------------------------------
    OCB    MACRO   LP1,LP2,LP3           ;LOAD ADDRESS,BLOCK NUMBER,NUMBER OF BLOCKS
    ;* REV 0 DTT. 7/12/83  coded and tested
           DEFW    LP1                   ;TRANSFER ADDRESS OF THE OVERLAY (WHERE DOES IT GET LOADED IN RAM)
           DEFW    LP2                   ;BLOCK NUMBER OF THE FIRST BLOCK IN THE OVERLAY
           DEFB    LP3                   ;NUMBER OF BLOCKS TO TRANSFER
           MEND

    ;-------------------------------------------------------------------------
           PROG

    OCB:
           OCB     08000H,1,16                           ;MAIN PROGRAM
           OCB     08000H,1+16,16                        ;BACKUP MAIN PROGRAM
           OCB     02400H,1+16+16,7                      ;OVERLAY 3
           OCB     0C000H,1+16+16+7,8                    ;OVERLAY 4
           OCB     02400H,1+16+16+7+8,6                  ;OVERLAY 5
           OCB     0C000H,1+16+16+7+8+6,8                ;OVERLAY 6
           OCB     02400H,1+16+16+7+8+6+8,6              ;OVERLAY 7
           OCB     0C000H,1+16+16+7+8+6+8+6,6            ;OVERLAY 8
           OCB     02400H,1+16+16+7+8+6+8+6+6,4          ;OVERLAY 9
           OCB     07C00H,128+1,1                        ;REWIND (NEVER ACTUAL EXECUTABLE CODE)
           OCB     0C000H,128+1+13,14                    ;OVERLAY 11
           OCB     02400H,128+1+13+14,7                  ;OVERLAY 12
           OCB     0C000H,128+1+13+14+7,1                ;OVERLAY 13
           OCB     03000H,128+1,10                       ;OVERLAY 14 VANITY SCREEN
           OCB     05800H,128+13,1                       ;OVERLAY 15 VANITY DATA OVERLAY
           OCB     0C000H,128+1+13+14+7+1,6              ;OVERLAY 16
           OCB     0FFFFH,0FFFFH,0FFH                    ;SPARE
           OCB     0FFFFH,0FFFFH,0FFH                    ;SPARE
           DEFB    0FFH                                  ;DEFINES THE TERMINATOR